<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>stu show1</title>
</head>
<body>
    <input type="radio" name="stuSex" th:field="${stu.stuSex}" th:value="男" />男
    <input type="radio" name="stuSex" th:field="${stu.stuSex}" th:value="女" />女
    <hr />
    <span th:if="${stu.stuSex eq '男'}">男</span>
    <span th:if="${stu.stuSex == '女'}">女</span>
    <label th:unless="${stu.stuSex eq '男'}">女</label>
    <label th:unless="${stu.stuSex eq '女'}">男</label>
    <hr />
    <div th:switch="${stu.stuSex}">
        <span th:case="男">男</span>
        <span th:case="女">女</span>
        <span th:case="不详">不详</span>
    </div>
</body>
</html>